import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    transferAccount: '',
    CollectionName: '',
    CollectionAccount: '',
    CollectionBank: '',
    RemittanceAmount: '',
    CollectionStatement: '',
    serialNumber: ''
  },
  mutations: {
    sendTransferAccount (state, TransferAccount) {
      state.transferAccount = TransferAccount
    },
    sendCollectionName (state, CollectionName) {
      state.CollectionName = CollectionName
    },
    sendCollectionAccount (state, CollectionAccount) {
      state.CollectionAccount = CollectionAccount
    },
    sendCollectionBank (state, CollectionBank) {
      state.CollectionBank = CollectionBank
    },
    sendRemittanceAmount (state, RemittanceAmount) {
      state.RemittanceAmount = RemittanceAmount
    },
    sendCollectionStatement (state, CollectionStatement) {
      state.CollectionStatement = CollectionStatement
    },
    sendserialNumber (state, serialNumber) {
      state.serialNumber = serialNumber + 1
    }
  }
})
